package com.woniuxy.store.client;

import com.woniuxy.store.client.param.MemberExchangeParam.AddMemberFoodParams;
import com.woniuxy.store.client.param.MemberExchangeParam.ExchangeFoodSearchParams;
import com.woniuxy.store.client.param.MemberExchangeParam.ModifyMemberFoodParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "memberFoodClient",name="store",path="/store/marketing")
public interface MemberFoodClient {

    @GetMapping("/getScoreExchangeFood")
    public Result getScoreExchangeFood(@SpringQueryMap ExchangeFoodSearchParams exchangeFoodSearchParams);

    @PostMapping("/addMemberFood")
    public Result addMemberFood(@RequestBody AddMemberFoodParams addMemberFoodParams);

    @PutMapping("/modifyMemberFood")
    public Result modifyMemberFood(@RequestBody ModifyMemberFoodParams modifyMemberFoodParams);

    @DeleteMapping("/delMemberFood")
    public Result delMemberFood(@RequestParam("exchangeFoodId")Integer exchangeFoodId);

}
